#include <iostream>
#include <vector>
#include <algorithm>
#include <sys/time.h>

using namespace std;

int searchInsert(vector<int>& nums, int target) 
{
  int n = nums.size();
  int ret=0;
  if( 0==n )
  {
    return 0;
  }

  for( int i=0; i<n; ++i )
  {
    if( target <= nums.at(i) )
    {
      //ret = i;
      return i;

    }
  }

}



int main(int argc,char *argv[])
{

  struct  timeval    tv1,tv2;
  struct  timezone   tz;
  int time1 = gettimeofday(&tv1,&tz);

  //func();

  int time2 = gettimeofday(&tv2,&tz);
  cout << "time consuming:" << tv2.tv_usec - tv1.tv_usec <<"us"<< endl;



  return 0;
}
